package objAda;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-04-21
 * Time: 14:00
 */

public class Client {
    public static void main(String[] args) {
        System.out.println("对象适配器模式");
        //创建一个手机
        Phone phone = new Phone();
        //调用手机充电的方法
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
